package com.jozen.smart_toilet_system.web_socket;

import com.google.gson.annotations.SerializedName;

public class BaseCommDataModel<T> {

    @SerializedName("err")
    private String err;
    @SerializedName("Func")
    private String func;
    @SerializedName("Para")
    private T para;


    public String getErr() {
        return err;
    }

    public void setErr(String err) {
        this.err = err;
    }

    public String getFunc() {
        return func;
    }

    public void setFunc(String func) {
        this.func = func;
    }

    public T getPara() {
        return para;
    }

    public void setPara(T para) {
        this.para = para;
    }


    public static class ParaDTO {
        @SerializedName("User")
        private String user;
        @SerializedName("Name")
        private String name;
        @SerializedName("Mode")
        private String mode;
        @SerializedName("OpRet")
        private int opRet;
        @SerializedName("RetMsg")
        private String retMsg;
        @SerializedName("Time")
        private long Time;

        public long getTime() {
            return Time;
        }

        public void setTime(long time) {
            Time = time;
        }

        public String getUser() {
            return user;
        }

        public void setUser(String user) {
            this.user = user;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMode() {
            return mode;
        }

        public void setMode(String mode) {
            this.mode = mode;
        }

        public int getOpRet() {
            return opRet;
        }

        public void setOpRet(int opRet) {
            this.opRet = opRet;
        }

        public String getRetMsg() {
            return retMsg;
        }

        public void setRetMsg(String retMsg) {
            this.retMsg = retMsg;
        }
    }
}
